import java.util.ArrayList;


public class Store{
	private ArrayList<Pet> pets = new ArrayList<Pet>();
	public void addPet(Pet pet){//adding pets
		pets.add(pet);
	}
	public boolean removePet(Pet pet){//adding pets
		return pets.remove(pet);
	}
	public Pet getPet(int i){//getting our pets
		pets.get(i);
		return pets.get(i);
	}
	public static void main(String[] args){
		Store store1 = new Store();
		Cat cat1 = new Cat(10, "Cat", true);//creating cat
		cat1.meow();//doing functions that were stated in Cat.java
		System.out.println(cat1.getname());//printing line
		Prime prime1 = new Prime(20, "Prime", false);//creating a prime animal
		prime1.teaching();//functions from Prime.java
		System.out.println(prime1.getname());//printing prime's names
		store1.addPet(cat1);//adding pet to the store
		store1.addPet(prime1);//adding pet to the store
	}
}
